package com.zimmur.model.account;

import com.fasterxml.jackson.annotation.JsonIgnore;

public class UserMessage {
    private Long messageId;
    
    private Long userId;
    //发送给
    @JsonIgnore
    private Long toUserId;
    
    //模块ID 
    private Integer moduleId;
    
    private String msgTitle;
    
    private String msgContent;

    private String msgType;
    
    private String msgUrl;
    
    private String dataId;
    @JsonIgnore
    private Integer isRead;

    private Integer createDate;
    @JsonIgnore
    private Integer readDate;
    @JsonIgnore
    private Integer isPush;

    private String categoryCode;//消息类别:notify=通知/organization=闪创/service=客服消息
    
	public String getCategoryCode() {
		return categoryCode;
	}

	public void setCategoryCode(String categoryCode) {
		this.categoryCode = categoryCode;
	}

	
	public Integer getIsRead() {
		return isRead;
	}

	public void setIsRead(Integer isRead) {
		this.isRead = isRead;
	}

	public Long getMessageId() {
		return messageId;
	}

	public void setMessageId(Long messageId) {
		this.messageId = messageId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getToUserId() {
		return toUserId;
	}

	public void setToUserId(Long toUserId) {
		this.toUserId = toUserId;
	}

	public Integer getModuleId() {
		return moduleId;
	}

	public void setModuleId(Integer moduleId) {
		this.moduleId = moduleId;
	}

	public String getMsgTitle() {
		return msgTitle;
	}

	public void setMsgTitle(String msgTitle) {
		this.msgTitle = msgTitle;
	}

	public String getMsgContent() {
		return msgContent;
	}

	public void setMsgContent(String msgContent) {
		this.msgContent = msgContent;
	}

	public String getMsgType() {
		return msgType;
	}
	/**
	 * 消息类型
	 * @param msgType text/url
	 */
	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}

	public String getMsgUrl() {
		return msgUrl;
	}

	public void setMsgUrl(String msgUrl) {
		this.msgUrl = msgUrl;
	}

	public String getDataId() {
		return dataId;
	}

	public void setDataId(String dataId) {
		this.dataId = dataId;
	}

	

	public Integer getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Integer createDate) {
		this.createDate = createDate;
	}

	public Integer getReadDate() {
		return readDate;
	}

	public void setReadDate(Integer readDate) {
		this.readDate = readDate;
	}

	public Integer getIsPush() {
		return isPush;
	}

	public void setIsPush(Integer isPush) {
		this.isPush = isPush;
	}

	@Override
	public String toString() {
		return "UserMessage [messageId=" + messageId + ", userId=" + userId + ", msgContent="
				+ msgContent + ", msgType=" + msgType + ", dataId=" + dataId + ", isRead=" + isRead + ", createDate="
				+ createDate + ", readDate=" + readDate +",categoryCode="+categoryCode+ "]";
	}

}